home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
tchk21.arc
/
INCLUDE.ARC
/
COMM.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-06-20
|
745b
|
17 lines
/* TCHK 2.1 - Howard Kapustein's Turbo C library 6-6-89 */
/* Copyright (C) 1988,1989 Howard Kapustein. All rights reserved. */
/* comm.h - header file for COMM.C - Communications routines */
#ifndef COMM_HEADER
#define COMM_HEADER 1
/* function prototypes */
unsigned CRC16_block(char *b, int size); /* calculate CRC-16 of a block */
unsigned CRC16update(char c, unsigned crc); /* update a CRC-16 */
unsigned CRC16tupdate(char c, unsigned crc);/* table driven update of a CRC-16 */
unsigned char Checksum_block(char *b, int size); /* calculate checksum of a block */
unsigned long CRC32tupdate(char c, unsigned long crc); /* table driven update of a CRC-32 */
#endif /* COMM_HEADER */